<div style="width: auto; height: 60px;"> 
    <a class="button" title="Ver Reporte" id="doreporte" >
        <img src="imgv2/actions/system-search.png" />
    </a>
    <?php
    foreach ($this->printers as $k => $v) {
        ?>
        <a class="button" title="<?php echo $v["label"]; ?>" 
           href="<?php echo LINKS_PATH . "&report=print&reportId=" . $this->currentRep->key . "&printer=" . $v["name"]; ?>">
            <img title="<?php echo $v["label"]; ?>"  src="img/<?php echo $v["icon"]; ?>" />            
        </a>
    <?php } ?> 
    &nbsp;&nbsp;
    <a class="button" title="Regresar" href="<?php echo CORE_PATH ?>?module=<?php echo $this->instanceName; ?>" >
        <img src="imgv2/actions/edit-undo.png" />
    </a>
</div>
<script type="text/javascript">
    jQuery(".button").button();
</script>
<script type="text/javascript">           
    $("#doreporte").click(function(){
        doReportReq();
    });
    var thereIsResult=false;
    var doReportReq=function(){
        //trae informacion del estado de cuenta
        app.doAppAjax(
        {
            type: "POST",
            data: $("#reportform").serialize(),
            url: "report=<?php echo $this->currentRep->key; ?>&params=true",
            beforeSend:function() {
                fntOpenDialogCargando();
            },
            success:function(data) {
                $("#resultado").html(data);
                fntCloseDialogCargando();
                thereIsResult=true;
            },
            error:function() {
                fntCloseDialogCargando();
            }});
    }
</script>